using UnityEngine;

namespace Minesweeper.Campsite
{
    public class Seat : InteractiveObject
    {
        public Vector2 sittingOffset;

        public override bool Interact(CampsitePlayer player)
        {
            player.Sit(this, sittingOffset);
            player.SpriteRenderer.sprite = player.right;
            player.SetMirrored(true);
            return false;
        }

        protected override bool InteractableInternal(CampsitePlayer player)
        {
            return !player.SittingObject;
        }
    }
}
